﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//
using PharmacyBussinesEntities;
using PharmacyService;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;
using System.Web.ModelBinding;


namespace PharmacyWeb.Ventas
{
    public partial class FrmListCompras : System.Web.UI.Page
    { 
        [Dependency]
        public ICompraService CompraService { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public IEnumerable<Compra> GetCompras([Control("txtCriterio")] string Criterio)
        {
            return CompraService.GetComprasByCriterio(Criterio);
        }
    }
}